<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('电子箱单')"/>
    <style>
        [v-cloak] {
            display: none;
        }
        .el-date-editor.el-input, .el-date-editor.el-input__inner {
            width: 200px!important;
        }
        .el-input__icon {
            line-height: 0!important;
        }
        .tag {
            display: inline-block;
            padding: 0 5px;
            line-height: 22px;
            color: #FFFFFF;
            border-radius: 3px;
        }
        th,td{
            text-align:center
        }
        @media print {
            .noprint {
                display: none
            }
        }
    </style>
</head>
<body class="gray-bg">
<div class="noprint" id="toolbar" role="group" style="margin-top: 15px;margin-left: 10px">
    <a class="btn btn-primary" onclick="$.table.print()">
        <i class="fa fa-print"></i> 打印
    </a>
</div>
<div class="table-responsive">
    <table class="table">

        <thead>
        <tr>
            <th>序号</th>
            <th>SAP交货单号</th>
            <th>交货类型</th>
            <th>交货类型描述</th>
            <th>供应商编码</th>
            <th>公司代码</th>
            <th>采购组织</th>
            <th>采购组</th>
            <th>SAP推送时间</th>
            <th>备注</th>
            <th>WMS返回值</th>
            <th>WMS返回值描述</th>
            <th>WMS反馈时间</th>



        </tr>

        </thead>
        <tbody>
        <tr th:each="byid :${byids}">
            <td th:text="${byid.billInSapId}"></td>
            <td th:text="${byid.vBELN}"></td>
            <td th:text="${byid.lFART}"></td>
            <td th:text="${byid.vTEXT}"></td>
            <td th:text="${byid.lIFNR}"></td>
            <td th:text="${byid.bUKRS}"></td>
            <td th:text="${byid.eKORG}"></td>
            <td th:text="${byid.eKGRP}"></td>
            <td th:text="${byid.createTime}"></td>
            <td th:text="${byid.iTEMTEXT}"></td>
            <td th:text="${byid.eRRORNO}"></td>
            <td th:text="${byid.eRRORMSG}"></td>
            <td th:text="${byid.logCreateTime}"></td>



        </tr>
        </tbody>
    </table>
</div>
<div th:include="include :: footer"></div>
<script th:src="@{/wms/js/moreSearch.js}"></script>
<script th:inline="javascript">
    var prefix = ctx + "electricBox";

    function bit() {
        var rows = $.common.isEmpty($.table._option.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns($.table._option.uniqueId);

        document.location=prefix+"/print?ids="+rows
    }

    const searchOptions = ['出库日期', 'SAP交货单号', '托号', '批次号', '物料号', '厂商名称', '晶片编号', '单晶组合','入库类别'];

    var app = new Vue({
        el: '.container-div',
        data: {
            showMore: false,
            checkAll: false,
            checkedSearch: ['出库日期', 'SAP交货单号', '托号', '批次号'],
            searches: searchOptions,
            isIndeterminate: true,
            timeA: '',
            timeB: '',
        },
        methods: {
            //时间对比
            compareAB: function(){
                if(this.timeA != '' && this.timeA != null){
                    if(this.timeB != '' && this.timeB != null){
                        var a = new Date(this.timeA);
                        var b = new Date(this.timeB);
                        if(a >= b){
                            $.modal.alertError("结束时间需大于开始时间，请重新选择！！");
                            this.timeA = '';
                            this.timeB = '';
                        }
                    }else{
                        this.timeB = '';
                    }
                }else{
                    this.timeA = '';
                    if(this.timeB == null){
                        this.timeB = '';
                    }
                }
            },
            //清空时间
            resetTime(){
                this.timeA = '';
                this.timeB = '';
            }
        }
    })

    $(function () {
        var options = {
            url: prefix + "/list",
            modalName: "电子箱单",
            columns: [
                {
                    checkbox:true
                },
                {
                    field: 'TorrNumber',
                    title: '序号',
                    align: 'center',
                    visible: false
                },
                {
                    field: 'OutData',
                    title: '出库日期',
                    align: 'center'
                },
                {
                    field: 'Conductive',
                    title: 'SAP交货单号',
                    align: 'center'
                },
                {
                    field: 'Torr',
                    title: '托号',
                    align: 'center'
                },
                {
                    field: 'f_Degree',
                    title: '批次号',
                    align: 'center'
                },
                {
                    field: 'BarCode',
                    title: '物料号',
                    align: 'center'
                },
                {
                    field: 'Firm',
                    title: '厂商名称',
                    align: 'center'
                },
                {
                    field: 'Coding',
                    title: '晶片编号',
                    align: 'center'
                },

                {
                    field: 'WorkShop',
                    title: '单晶组合',
                    align: 'center'
                },
                {
                    field: 'Size',
                    title: '规格',
                    align: 'center'
                },

                {
                    field: 'R_Long',
                    title: '入库长度',
                    align: 'center'
                },
                {
                    field: 'D_Long',
                    title: '单晶长度',
                    align: 'center'
                },

                {
                    field: 'Weight',
                    title: '重量',
                    align: 'center'
                },
                {
                    field: 'T_Weigh',
                    title: '理论重量',
                    align: 'center'
                },

                {
                    field: 'CustomerProfile',
                    title: '客户类别',
                    align: 'center'
                },
                {
                    field: 'Remark',
                    title: '方棒备注',
                    align: 'center'
                },

                {
                    field: 'B_Long',
                    title: '崩',
                    align: 'center'
                },
                {
                    field: 'Inclined',
                    title: '斜',
                    align: 'center'
                },

                {
                    field: 'J_Beige',
                    title: '单晶灰皮',
                    align: 'center'
                },
                {
                    field: 'F_Beige',
                    title: '方棒灰皮',
                    align: 'center'
                },

                {
                    field: 'Stria',
                    title: '线痕',
                    align: 'center'
                },
                {
                    field: 'Scar',
                    title: '刀痕',
                    align: 'center'
                },

                {
                    field: 'SizeType',
                    title: '阴阳面',
                    align: 'center'
                },{
                    field: 'WagonNumber',
                    title: '水印',
                    align: 'center'
                },

                {
                    field: 'P_Type',
                    title: '平面手感',
                    align: 'center'
                },
                {
                    field: 'VerifyRemark',
                    title: '砂轮印',
                    align: 'center'
                },

                {
                    field: 'Warehousing',
                    title: '外圆手感',
                    align: 'center'
                },
                {
                    field: 'Scratch',
                    title: '划痕',
                    align: 'center'
                },

                {
                    field: 'NotGrind',
                    title: '未磨到',
                    align: 'center'
                },
                {
                    field: 'AbnormalSize',
                    title: '尺寸异常',
                    align: 'center'
                },

                {
                    field: 'D_Location',
                    title: '亮斑',
                    align: 'center'
                },
                {
                    field: 'Passivation_T',
                    title: '棱崩',
                    align: 'center'
                },

                {
                    field: 'Dopant',
                    title: '砂轮亮点',
                    align: 'center'
                },
                {
                    field: 'Flaw',
                    title: '拼缝宽',
                    align: 'center'
                },

                {
                    field: 'LengthInStorage',
                    title: '减异常入库长度',
                    align: 'center'
                },
                {
                    field: 'AbnormalLength',
                    title: '一二三类/放行（异常）长度',
                    align: 'center'
                },

                {
                    field: 'AbnormalLengthTheory',
                    title: '一二三类/放行（异常）长度理论',
                    align: 'center'
                }, {
                    field: 'TotalLength',
                    title: '合计长度',
                    align: 'center'
                },

                {
                    field: 'TotalWeight',
                    title: '合计理论重量',
                    align: 'center'
                }, {
                    field: 'InType',
                    title: '入库类别',
                    align: 'center'
                },







            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>
